/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.upc.clase.demo.service.impl;

import edu.upc.clase.demo.dao.ComentarDao;
import edu.upc.clase.demo.entity.Comentar;
import edu.upc.clase.demo.service.ComentarService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Omar
 */
@Service
public class ComentarServiceImpl implements ComentarService {

    private static Logger log = LoggerFactory.getLogger(ComentarServiceImpl.class);
    @Autowired
    private ComentarDao comentarDao;

    @Override
    public Integer insertar(Comentar comentar) {
        log.info("Registrando comentario");
        return comentarDao.insertar(comentar);
    }
}
